Optimal. Leaf size=145 \[ \frac{b^2 \sqrt{a \sin (e+f x)} \tan ^{-1}\left (\sqrt{\cos (e+f x)}\right )}{a^3 f \sqrt{\cos (e+f x)} \sqrt{b \tan (e+f x)}}-\frac{b^2 \sqrt{a \sin (e+f x)} \tanh ^{-1}\left (\sqrt{\cos (e+f x)}\right )}{a^3 f \sqrt{\cos (e+f x)} \sqrt{b \tan (e+f x)}}+\frac{2 b \sqrt{b \tan (e+f x)}}{a^2 f \sqrt{a \sin (e+f x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.150169, antiderivative size = 145, normalized size of antiderivative = 1., number of steps used = 8, number of rules used = 8, integrand size = 25, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.32, Rules used = {2593, 2601, 12, 2565, 329, 298, 203, 206} \[ \frac{b^2 \sqrt{a \sin (e+f x)} \tan ^{-1}\left (\sqrt{\cos (e+f x)}\right )}{a^3 f \sqrt{\cos (e+f x)} \sqrt{b \tan (e+f x)}}-\frac{b^2 \sqrt{a \sin (e+f x)} \tanh ^{-1}\left (\sqrt{\cos (e+f x)}\right )}{a^3 f \sqrt{\cos (e+f x)} \sqrt{b \tan (e+f x)}}+\frac{2 b \sqrt{b \tan (e+f x)}}{a^2 f \sqrt{a \sin (e+f x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2593
Rule 2601
Rule 12
Rule 2565
Rule 329
Rule 298
Rule 203
Rule 206
Rubi steps
\begin{align*} \int \frac{(b \tan (e+f x))^{3/2}}{(a \sin (e+f x))^{5/2}} \, dx &=\frac{2 b \sqrt{b \tan (e+f x)}}{a^2 f \sqrt{a \sin (e+f x)}}+\frac{b^2 \int \frac{1}{\sqrt{a \sin (e+f x)} \sqrt{b \tan (e+f x)}} \, dx}{a^2}\\ &=\frac{2 b \sqrt{b \tan (e+f x)}}{a^2 f \sqrt{a \sin (e+f x)}}+\frac{\left (b^2 \sqrt{a \sin (e+f x)}\right ) \int \frac{\sqrt{\cos (e+f x)} \csc (e+f x)}{a} \, dx}{a^2 \sqrt{\cos (e+f x)} \sqrt{b \tan (e+f x)}}\\ &=\frac{2 b \sqrt{b \tan (e+f x)}}{a^2 f \sqrt{a \sin (e+f x)}}+\frac{\left (b^2 \sqrt{a \sin (e+f x)}\right ) \int \sqrt{\cos (e+f x)} \csc (e+f x) \, dx}{a^3 \sqrt{\cos (e+f x)} \sqrt{b \tan (e+f x)}}\\ &=\frac{2 b \sqrt{b \tan (e+f x)}}{a^2 f \sqrt{a \sin (e+f x)}}-\frac{\left (b^2 \sqrt{a \sin (e+f x)}\right ) \operatorname{Subst}\left (\int \frac{\sqrt{x}}{1-x^2} \, dx,x,\cos (e+f x)\right )}{a^3 f \sqrt{\cos (e+f x)} \sqrt{b \tan (e+f x)}}\\ &=\frac{2 b \sqrt{b \tan (e+f x)}}{a^2 f \sqrt{a \sin (e+f x)}}-\frac{\left (2 b^2 \sqrt{a \sin (e+f x)}\right ) \operatorname{Subst}\left (\int \frac{x^2}{1-x^4} \, dx,x,\sqrt{\cos (e+f x)}\right )}{a^3 f \sqrt{\cos (e+f x)} \sqrt{b \tan (e+f x)}}\\ &=\frac{2 b \sqrt{b \tan (e+f x)}}{a^2 f \sqrt{a \sin (e+f x)}}-\frac{\left (b^2 \sqrt{a \sin (e+f x)}\right ) \operatorname{Subst}\left (\int \frac{1}{1-x^2} \, dx,x,\sqrt{\cos (e+f x)}\right )}{a^3 f \sqrt{\cos (e+f x)} \sqrt{b \tan (e+f x)}}+\frac{\left (b^2 \sqrt{a \sin (e+f x)}\right ) \operatorname{Subst}\left (\int \frac{1}{1+x^2} \, dx,x,\sqrt{\cos (e+f x)}\right )}{a^3 f \sqrt{\cos (e+f x)} \sqrt{b \tan (e+f x)}}\\ &=\frac{b^2 \tan ^{-1}\left (\sqrt{\cos (e+f x)}\right ) \sqrt{a \sin (e+f x)}}{a^3 f \sqrt{\cos (e+f x)} \sqrt{b \tan (e+f x)}}-\frac{b^2 \tanh ^{-1}\left (\sqrt{\cos (e+f x)}\right ) \sqrt{a \sin (e+f x)}}{a^3 f \sqrt{\cos (e+f x)} \sqrt{b \tan (e+f x)}}+\frac{2 b \sqrt{b \tan (e+f x)}}{a^2 f \sqrt{a \sin (e+f x)}}\\ \end{align*}
Mathematica [A] time = 0.34573, size = 104, normalized size = 0.72 \[ \frac{b \sqrt{b \tan (e+f x)} \left (2 \cos ^2(e+f x)^{3/4}+\cos ^2(e+f x) \tan ^{-1}\left (\sqrt [4]{\cos ^2(e+f x)}\right )-\cos ^2(e+f x) \tanh ^{-1}\left (\sqrt [4]{\cos ^2(e+f x)}\right )\right )}{a^2 f \cos ^2(e+f x)^{3/4} \sqrt{a \sin (e+f x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.148, size = 247, normalized size = 1.7 \begin{align*} -{\frac{ \left ( \cos \left ( fx+e \right ) -1 \right ) \cos \left ( fx+e \right ) }{2\,f\sin \left ( fx+e \right ) } \left ( \cos \left ( fx+e \right ) \ln \left ( -2\,{\frac{1}{ \left ( \sin \left ( fx+e \right ) \right ) ^{2}} \left ( 2\,\sqrt{-{\frac{\cos \left ( fx+e \right ) }{ \left ( \cos \left ( fx+e \right ) +1 \right ) ^{2}}}} \left ( \cos \left ( fx+e \right ) \right ) ^{2}- \left ( \cos \left ( fx+e \right ) \right ) ^{2}-2\,\sqrt{-{\frac{\cos \left ( fx+e \right ) }{ \left ( \cos \left ( fx+e \right ) +1 \right ) ^{2}}}}+2\,\cos \left ( fx+e \right ) -1 \right ) } \right ) +\cos \left ( fx+e \right ) \arctan \left ({\frac{1}{2}{\frac{1}{\sqrt{-{\frac{\cos \left ( fx+e \right ) }{ \left ( \cos \left ( fx+e \right ) +1 \right ) ^{2}}}}}}} \right ) +4\,\cos \left ( fx+e \right ) \sqrt{-{\frac{\cos \left ( fx+e \right ) }{ \left ( \cos \left ( fx+e \right ) +1 \right ) ^{2}}}}+4\,\sqrt{-{\frac{\cos \left ( fx+e \right ) }{ \left ( \cos \left ( fx+e \right ) +1 \right ) ^{2}}}} \right ) \left ({\frac{b\sin \left ( fx+e \right ) }{\cos \left ( fx+e \right ) }} \right ) ^{{\frac{3}{2}}} \left ( a\sin \left ( fx+e \right ) \right ) ^{-{\frac{5}{2}}}{\frac{1}{\sqrt{-{\frac{\cos \left ( fx+e \right ) }{ \left ( \cos \left ( fx+e \right ) +1 \right ) ^{2}}}}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\left (b \tan \left (f x + e\right )\right )^{\frac{3}{2}}}{\left (a \sin \left (f x + e\right )\right )^{\frac{5}{2}}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 5.00055, size = 1334, normalized size = 9.2 \begin{align*} \left [\frac{2 \, a b \sqrt{-\frac{b}{a}} \arctan \left (\frac{2 \, \sqrt{a \sin \left (f x + e\right )} \sqrt{\frac{b \sin \left (f x + e\right )}{\cos \left (f x + e\right )}} \sqrt{-\frac{b}{a}} \cos \left (f x + e\right )}{{\left (b \cos \left (f x + e\right ) + b\right )} \sin \left (f x + e\right )}\right ) \sin \left (f x + e\right ) + a b \sqrt{-\frac{b}{a}} \log \left (-\frac{b \cos \left (f x + e\right )^{3} - 4 \, \sqrt{a \sin \left (f x + e\right )} \sqrt{\frac{b \sin \left (f x + e\right )}{\cos \left (f x + e\right )}} \sqrt{-\frac{b}{a}} \cos \left (f x + e\right ) \sin \left (f x + e\right ) - 5 \, b \cos \left (f x + e\right )^{2} - 5 \, b \cos \left (f x + e\right ) + b}{\cos \left (f x + e\right )^{3} + 3 \, \cos \left (f x + e\right )^{2} + 3 \, \cos \left (f x + e\right ) + 1}\right ) \sin \left (f x + e\right ) + 8 \, \sqrt{a \sin \left (f x + e\right )} b \sqrt{\frac{b \sin \left (f x + e\right )}{\cos \left (f x + e\right )}}}{4 \, a^{3} f \sin \left (f x + e\right )}, -\frac{2 \, a b \sqrt{\frac{b}{a}} \arctan \left (\frac{2 \, \sqrt{a \sin \left (f x + e\right )} \sqrt{\frac{b \sin \left (f x + e\right )}{\cos \left (f x + e\right )}} \sqrt{\frac{b}{a}} \cos \left (f x + e\right )}{{\left (b \cos \left (f x + e\right ) - b\right )} \sin \left (f x + e\right )}\right ) \sin \left (f x + e\right ) - a b \sqrt{\frac{b}{a}} \log \left (\frac{4 \,{\left (\cos \left (f x + e\right )^{2} + \cos \left (f x + e\right )\right )} \sqrt{a \sin \left (f x + e\right )} \sqrt{\frac{b \sin \left (f x + e\right )}{\cos \left (f x + e\right )}} \sqrt{\frac{b}{a}} -{\left (b \cos \left (f x + e\right )^{2} + 6 \, b \cos \left (f x + e\right ) + b\right )} \sin \left (f x + e\right )}{{\left (\cos \left (f x + e\right )^{2} - 2 \, \cos \left (f x + e\right ) + 1\right )} \sin \left (f x + e\right )}\right ) \sin \left (f x + e\right ) - 8 \, \sqrt{a \sin \left (f x + e\right )} b \sqrt{\frac{b \sin \left (f x + e\right )}{\cos \left (f x + e\right )}}}{4 \, a^{3} f \sin \left (f x + e\right )}\right ] \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\left (b \tan \left (f x + e\right )\right )^{\frac{3}{2}}}{\left (a \sin \left (f x + e\right )\right )^{\frac{5}{2}}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]